// 结构体作为函数的参数
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

struct student
{
    int id;
    int age;
    char name[32];
};

void my_print(struct student *p);

int main(int argc, char **argv)
{
    struct student st = {1, 2, "kaka"};

    // 输出
    my_print(&st);

    return 0;
}

void my_print(struct student *p)
{
    printf("%d %d %s\n", p->id, p->age, p->name);
    return;
}